package com.rybbaby.tss.front.tssMealFee.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @description 订金表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:56:55
 */
@Entity
@Table(name = "tss_meal_fee")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssMealFee implements Serializable {


    private static final long serialVersionUID = 9124130636054178917L;
    /** 主键 **/
	private String id;
	/** 会员Id **/
	private String stuId;
	/** 日餐点费 **/
	private Double dayMealFee;
    /** 缴费金额 **/
    private Double amount;
    /** 消耗金额 **/
    private Double consumptionAmount;
    /** 剩余金额 **/
    private Double surplusAmout;
    /** 退费冻结金额 **/
    private Double freezeAmout;
	/** 创建时间 **/
	private java.sql.Timestamp createTime;
    /** 更新时间 **/
	private java.sql.Timestamp updateTime;
    /** 版本 **/
	private Integer version;

	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "tss_meal_feeIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_meal_feeIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}

    @Column(name = "stuId", nullable= true, length = 32)
    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    @Column(name = "dayMealFee", nullable= true, length = 32)
    public Double getDayMealFee() {
        return dayMealFee;
    }

    public void setDayMealFee(Double dayMealFee) {
        this.dayMealFee = dayMealFee;
    }

    @Column(name = "amount", nullable= true, length = 32)
    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Column(name = "consumptionAmount", nullable= true, length = 32)
    public Double getConsumptionAmount() {
        return consumptionAmount;
    }

    public void setConsumptionAmount(Double consumptionAmount) {
        this.consumptionAmount = consumptionAmount;
    }

    @Column(name = "surplusAmout", nullable= true, length = 32)
    public Double getSurplusAmout() {
        return surplusAmout;
    }

    public void setSurplusAmout(Double surplusAmout) {
        this.surplusAmout = surplusAmout;
    }

    @Column(name = "freezeAmout", nullable= true, length = 32)
    public Double getFreezeAmout() {
        return freezeAmout;
    }

    public void setFreezeAmout(Double freezeAmout) {
        this.freezeAmout = freezeAmout;
    }

    @Column(name = "createTime", nullable= true, length = 32)
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Column(name = "updateTime", nullable= true, length = 32)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Version
    @Column(name = "version", nullable= true, length = 11)
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }



}